home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Code Resources / ColourBlock CDEF 1.1.1 / ColourBlock CDEF ReadMe next >
Encoding:
Text File  |  1996-01-05  |  1.9 KB  |  55 lines  |  [TEXT/ttxt]

  1. ColourBlock CDEF 1.1
  2. Copyright © 1995 Dair Grant, Purple Shark Software
  3.  
  4.  
  5. About ColourBlock CDEF
  6.  
  7. The ColourBlock CDEF is a CDEF for retrieving a block of colour from the user. Metrowerks C source and a 68K version is included in this archive.
  8.  
  9. The ColourBlock CDEF is freeware - you may use them, without notice, in whatever you want. The CDEF looks like this:
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17. The 'thick' selection behaves like a traditional check-box.
  18.  
  19.  
  20.  
  21. Using the CDEF
  22.  
  23. CNTL resources which use this CDEF should use a proc ID of 14000. The resource ID of the ColourBlock CDEF (as supplied) is 900. The CDEF does not support any variation codes.
  24.  
  25. The colour of the CDEF is held in a data structure attached to each control, a handle to which is left in the contrlData field of the control. Your application should get/set the value in this structure, and call Draw1Control when it wants to update the on-screen value. See ColourBlock.h for the format of this structure.
  26.  
  27. The CDEF will return inCheckBox when the control is selected.
  28.  
  29. NB - the CDEF assumes that Colour QuickDraw is present, and it doesn't attempt to be sensible when it's placed on a display with a small colour depth. Your application is responsible for disabling the control if it's not feasible to use it to pick colours with. The CDEF does not attempt to dither the colour blocks.
  30.  
  31. If you’ve any comments, bug reports, or suggestions feel free to email me.
  32.  
  33. -dair
  34. dair@kagi.com
  35. http://www-server.bcc.ac.uk/~ccaadfg
  36. (Purple Shark Software, http://www-server.bcc.ac.uk/~ccaadfg/purpleshark)
  37. June 14th, 1995
  38.  
  39.  
  40.  
  41. Version History
  42.  
  43. 1.1.1
  44. • Updated for Metrowerks CW7.
  45.  
  46. 1.1
  47. • Fixed bug which occurred when a CDEF was positioned between two displays, one of which was set to black & white, and then dragged more fully onto the colour display. Caused by passing the wrong flag to DeviceLoop. Bah.
  48.  
  49. • Compiled with Metrowerks CW6.
  50.  
  51. • Updated Author's email address.
  52.  
  53.  
  54. 1.0
  55. • First general release. THINK C source.